<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * HOUSEME backyard_view
 *
 * backyard view library for Code Igniter.
 * 
 * @author		Ryan Hu
 * @version		1.0
 */
class backyard_view
{
	private $error = array();

	function __construct()
	{
		$this->ci =& get_instance();
	}

	/**
	 * backyard header
	 */
	function header($page_type='')
	{
		$data = array();
		$user_data = $this->ci->session->all_userdata();
		$data['user_data'] = $user_data;
		if($page_type != ''){
			$data['page_level_styles'] = $this->ci->load->view('backyard/stylesheet/'.$page_type, '', TRUE);	
		}
		else{
			$data['page_level_styles'] = '';		
		}
		
		$this->ci->load->view('backyard/header', $data);
	}

	/**
	 * backyard footer
	 */
	function footer()
	{
		$this->ci->load->view('backyard/footer', '');
	}

	
}

/* End of file Backyard_view.php */
/* Location: ./application/libraries/Backyard_view.php */